package cii_lib_graph;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.WindowConstants;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class customGraphTest extends javax.swing.JPanel {
	private static final Logger log = LoggerFactory
			.getLogger(customGraphTest.class);
	private JPanel jPanel1;
	private JButton jButton1;
	private JTextField jTextField1;
	private Icon butIcon = new ImageIcon("D:\\test\\testL1_text.png");
	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	*/
	public static void main(String[] args) {
		JFrame frame = new JFrame("TestFX");
		frame.getContentPane().add(new customGraphTest());
		frame.setUndecorated(true);
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}
	
	public customGraphTest() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			this.setPreferredSize(new java.awt.Dimension(497, 448));
			this.setLayout(null);
			this.setBackground(new java.awt.Color(0,0,0));
			{
				jPanel1 = new JPanel();
				this.add(jPanel1);
				jPanel1.setBounds(56, 21, 301, 189);
				jPanel1.setBackground(new java.awt.Color(64,0,64));
				jPanel1.setLayout(null);
				{
					jTextField1 = new JTextField();
					jPanel1.add(jTextField1);
					jTextField1.setText("testing...");
					jTextField1.setBounds(147, 28, 105, 21);
					jTextField1.setBackground(new java.awt.Color(128,0,64));
					jTextField1.setForeground(new java.awt.Color(128,255,255));
				}
				{
					jButton1 = new JButton();
					jPanel1.add(jButton1);
					
					jButton1.setIcon(butIcon);
					jButton1.setText("TstB");
					jButton1.setBounds(168, 63, butIcon.getIconWidth()-11, butIcon.getIconHeight());
					jButton1.setForeground(new java.awt.Color(128,255,255));
					jButton1.addMouseListener(new MouseAdapter() {
						public void mouseExited(MouseEvent evt) {
							log.debug("jButton1.mouseExited, event="
								+ evt);
							//TODO add your code for jButton1.mouseExited
						}
						public void mouseEntered(MouseEvent evt) {
							log.debug("jButton1.mouseEntered, event="
								+ evt);
							//TODO add your code for jButton1.mouseEntered
						}
					});
				}
			}
		} catch (Exception e) {
			log.error("", e);
		}
	}

}
